<template>
	<view class="">
		demo3页面
		<button @click="remove">删除一个</button>
		<button @click="clear">删除所有</button>
	</view>
</template>

<script setup>
uni.setStorageSync('name', '张三');
uni.setStorageSync('arr', [1,2,3]);

let myName = uni.getStorageSync('name')
console.log(myName)

console.log(uni.getStorageInfoSync())

function remove(){
	uni.removeStorageSync('storage_key');
}
function clear(){
	uni.clearStorageSync();
}
</script>

<style lang='scss' scoped>

</style>
